<?php

class site_catalog {
	public function getBlock($url) {
		$url = 'http://'.$_SERVER['HTTP_HOST'].$url;
		$sData = file_get_contents($url);
		$aData = json_decode($sData, true);
		ob_start();
		include('tpl/_site_catalog.php');
		$sBlock = ob_get_contents();
		ob_end_clean();
		return $sBlock;
	}
}